Component({
  data: {
    tab: "",
    color: "#fff",
    selectedColor: "#13227A",
    list: [
      {
        pagePath: "/pages/map/map",
        text: "就近服务",
        iconPath: "/static/img/icon/icon_index.png",
        selectedIconPath: "/static/img/icon/icon_index_hl.png"
      },
      {
        pagePath: "/pages/user/user",
        text: "个人中心",
        iconPath: "/static/img/icon/icon_user.png",
        selectedIconPath: "/static/img/icon/icon_user_hl.png"
      }
    ]
  },
  methods: {
    switchTab(e) {
      const url = e.currentTarget.dataset.path
      wx.switchTab({url}) 
    },
    toSundog () {
      wx.navigateTo({
        url: '/pages/recording/recording',
      })
    }
  }
})